package org.ourgrid.broker.scheduler.workqueue.xmlcreator;

public class AcceptTransferXMLCreator implements XMLCreatorIF {
	
	
	/**
	 * <ACCEPT_TRANSFER id='long' localFileName='String' destinationFileName='String' description='String' 
	 * senderContainerID='String' fileSize='long'/>
	 */
	public String getXML(long id, String localFileName, String destinationFileName, String description, 
			String senderContainerID, long fileSize) {
		
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("<ACCEPT_TRANSFER ");
		buffer.append("id='" + id + "' ");
		buffer.append("localFileName='" + localFileName + "' ");
		buffer.append("destinationFileName='" + destinationFileName + "' ");
		buffer.append("description='" + description + "' ");
		buffer.append("senderContainerID='" + senderContainerID + "' ");
		buffer.append("fileSize='" + fileSize + "' ");
		buffer.append("/>");
		
		return buffer.toString();
	}
	
	

}
